{% extends "analysis_plugins/general_information.html" %}

{% block analysis_result_details %}

{% for vector in analysis_result['full'] | sort %}
    {% set input_vector = analysis_result['full'][vector] %}
    {% if input_vector %}
    <tr>
        <td>{{ vector }}</td>
        <td class="p-0">
            {% if vector == 'inputs' %}
                <table class="table table-bordered mb-0">
                    {% for class in input_vector %}
                        <tr>
                            <td rowspan="{{ input_vector[class] | length }}">{{ class }}</td>
                            {% for result in input_vector[class] %}
                                <td>{{ result['name'] }} with callsites at {{ result['xrefs'] }}{% if 'count' in result %}({{ result['count'] }}){% endif %}</td>
                            </tr><tr>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                </table>
            {% else %}
                <ul class="list-group mb-0 p-0">
                    {% for result in input_vector %}
                        <li class="list-group-item rounded-0">{{ result }}</li>
                    {% endfor %}
                </ul>
            {% endif %}
        </td>
    </tr>
    {% endif %}
{% endfor %}

{% endblock %}
